luci-base: Correct how textarea's wrap works
authorJoseph Mory <[email protected]>
Fri, 5 Jul 2024 09:15:55 +0000 (17:15 +0800)
committerPaul Donald <[email protected]>
Sat, 6 Jul 2024 11:32:12 +0000 (13:32 +0200)
Signed-off-by: Joseph Mory <[email protected]>
modules/luci-base/htdocs/luci-static/resources/ui.js

index 90ff86b75a9e9704a936450974ec1fc393087e37..0e395cea20c1c47e76488dbf75ece0002002bd1d 100644 (file)
@@ -511,7 +511,7 @@ var UITextarea = UIElement.extend(/** @lends LuCI.ui.Textarea.prototype */ {
                        'style': style,
                        'cols': this.options.cols,
                        'rows': this.options.rows,
-                       'wrap': this.options.wrap ? '' : null
+                       'wrap': this.options.wrap ? 'soft' : 'off'
                }, [ value ]));
 
                if (this.options.monospace)